/*
 * led.h
 *
 *  Created on: 2021年3月16日
 *      Author: jmxl
 */

#ifndef HARDWARE_INCLUDE_LED_H_
#define HARDWARE_INCLUDE_LED_H_

#include "gd32vf103.h"

struct led
{
	uint32_t led_port;
	uint32_t led_pin;
};

extern const struct led led0;
extern const struct led led1;

void led_init(void);
void led_on(struct led ledn);
void led_off(struct led ledn);
#endif /* HARDWARE_INCLUDE_LED_H_ */

